package fmi.chesstern.controller.implementation;


import fmi.chesstern.controller.GameCommand;
import fmi.chesstern.controller.GameCommandParameters;
import fmi.chesstern.game.GameState;
import fmi.chesstern.ui.GameUI;

public class DefaulExitHandler implements GameCommand {
	private GameUI ui;
	
	public DefaulExitHandler(GameUI ui) {
		this.ui = ui;
	}
	
	@Override
	public void execute(GameState state, GameCommandParameters parameters) {
		ui.exit();
	}
}
